<script setup>
import { onMounted } from 'vue'
import {UserService} from '../http/api'
onMounted(()=> {
    login4()
})
const login4 = async () => {
  const loginParams = {
    page: 1,
    per_page: 3
  }
  const res = await UserService.login4(loginParams)
  console.log(res)
}
</script>

<template>
  <div class="greetings">
    <h1 class="green">blog</h1>
    <el-row class="mb-4">
      <el-button type="primary">blog</el-button>
      <el-button type="success">blog</el-button>
      <el-button type="info">blog</el-button>
      <el-button type="warning">blog</el-button>
      <el-button type="danger">blog</el-button>
    </el-row>
    <router-link to="/blog/content/23">blog23</router-link>
    <router-link to="/blog/content/75">blog75</router-link>
    <router-link to="/blog/content/88">blog88</router-link>
    <!-- 嵌套路由视图占位符 -->
    <router-view></router-view>
  </div>
</template>

<style scoped>
h1 {
  font-weight: 500;
  font-size: 2.6rem;
  position: relative;
  top: -10px;
}

h3 {
  font-size: 1.2rem;
}

.greetings h1,
.greetings h3 {
  text-align: center;
}

@media (min-width: 1024px) {
  .greetings h1,
  .greetings h3 {
    text-align: left;
  }
}
</style>
